package com.quanxiaoha.weblog.admin.constant;

public class RedisKeyConstants {

    /**
     * 角色对应的权限集合 KEY 前缀
     */
    private static final String USER_ROLES_KEY_PREFIX = "user:roles:";


    /**
     * 构建角色对应的权限集合 KEY
     * @param roleName
     * @return
     */
    public static String buildUserRolesKey(String roleName) {
        return USER_ROLES_KEY_PREFIX + roleName;
    }
}

